package greentycoon.batiment.decharge;

import greentycoon.ville.Pollution;

public class DechargeACielOuvert extends Decharge{

	/*Attributs*/
	public static final int sizeX =2;
	public static final int sizeY =2;
	public static final int prix = 300;
	
	/*methodes*/
	public DechargeACielOuvert(int x,int y)
	{
		prixEntretient=0;
		pollution= new Pollution();
		capaciteTotal = 30000;
		dechetStocke =0;
		posX = x;
		posY = y;
	}
	
	public Pollution computePollution()
	{
		try{
			pollution.setPollutionSol((int)(50*((float)dechetStocke/(float)capaciteTotal)));
			}catch(Exception e){}
		return pollution;
	}
	
	public int getSizeX() {
		return sizeX;
	}

	public int getSizeY() {
		return sizeY;
	}

	
	
}
